<div class="contenidofijo">
<div class="ciuacademicperiods index">
  <?php  $tokens=array(0=>"", 1=>"Periodo Académico") ?>
        <?php echo $this->element("breadcrumb", array('tokens'=>$tokens))?>
  <button>
      <?php echo $this->Html->link(__('New Ciuacademicperiod', true), array('action' => 'add')); ?> 
  </button>
  <table class="zebra" cellpadding="0" cellspacing="0">
  <thead>
  <tr>
      <th><?php echo $this->Paginator->sort('id');?></th>
      <th><?php echo $this->Paginator->sort('start_date');?></th>
      <th><?php echo $this->Paginator->sort('end_date');?></th>
      <th><?php echo $this->Paginator->sort('preregistration_start');?></th>
      <th><?php echo $this->Paginator->sort('preregistration_end');?></th>
      <th><?php echo $this->Paginator->sort('registration_start');?></th>
      <th><?php echo $this->Paginator->sort('registration_end');?></th>
      <th><?php echo $this->Paginator->sort('classes_start');?></th>
      <th><?php echo $this->Paginator->sort('classes_end');?></th>
      <th><?php echo $this->Paginator->sort('Periodo');?></th>
      <th class="actions centrar"><?php __('Actions');?></th>
  </tr>
  </thead>
  <?php
  $i = 0;
  foreach ($ciuacademicperiods as $ciuacademicperiod):
    $class = null;
    if ($i++ % 2 == 0) {
      $class = ' class="altrow"';
    }
  ?>
  <tr<?php echo $class;?>>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['id']; ?>&nbsp;</td>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['start_date']; ?>&nbsp;</td>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['end_date']; ?>&nbsp;</td>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['preregistration_start']; ?>&nbsp;</td>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['preregistration_end']; ?>&nbsp;</td>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['registration_start']; ?>&nbsp;</td>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['registration_end']; ?>&nbsp;</td>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['classes_start']; ?>&nbsp;</td>
    <td><?php echo $ciuacademicperiod['Ciuacademicperiod']['classes_end']; ?>&nbsp;</td>
    <td><?php   if($ciuacademicperiod['Ciuacademicperiod']['isactive']){ 
                    echo "Actual";
                }else {
                    echo "----";
                }?>&nbsp;
    </td>
    <td class="actions">
      <?php echo $this->Html->link(__('View', true), array('action' => 'view', $ciuacademicperiod['Ciuacademicperiod']['id'])); ?>
      <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $ciuacademicperiod['Ciuacademicperiod']['id'])); ?>
    </td>
  </tr>
<?php endforeach; ?>
  </table>
  <div class="paginatorcounter">
  <?php
  echo $this->Paginator->counter(array(
  'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
  ));
  ?>  </p>

  <div class="paging">
    <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
   |  <?php echo $this->Paginator->numbers();?>
 |
    <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
  </div>
</div>
</div>